package cn.iocoder.yudao.module.wms.controller.admin.otherin.vo;

import cn.iocoder.yudao.module.wms.dal.dataobject.otherin.OtherInDDO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.time.LocalDate;
import java.util.*;
import java.math.BigDecimal;

@Schema(description = "管理后台 - 通用入库单新增/修改 Request VO")
@Data
public class OtherInSaveReqVO {

    @Schema(description = "序号", requiredMode = Schema.RequiredMode.REQUIRED, example = "2715")
    private Long id;

    @Schema(description = "单据类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "29572")
    @NotNull(message = "单据类型不能为空")
    private Long docId;

    @Schema(description = "单据日期", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "单据日期不能为空")
    private LocalDate docDate;

    @Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "编号不能为空")
    private String code;

    @Schema(description = "交易日期")
    private LocalDate transactionDate;

    @Schema(description = "制单人", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "制单人不能为空")
    private Long operateUser;

    @Schema(description = "制单部门")
    private Long operateDept;

    @Schema(description = "制单日期")
    private LocalDate operateDate;

    @Schema(description = "审核人")
    private Long approveUser;

    @Schema(description = "审核日期")
    private LocalDate approveDate;

    @Schema(description = "业务合计数量")
    private BigDecimal businessSumQty;

    @Schema(description = "成本合计金额")
    private BigDecimal costSumAmt;

    @Schema(description = "审核状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "审核状态不能为空")
    private Boolean approveStatus;

    @Schema(description = "附件")
    private String annex;

    @Schema(description = "备注", example = "你说的对")
    private String remark;

    @Schema(description = "通用入库单身列表")
    private List<OtherInDDO> otherInDs;

}